﻿/*----------------------------------------------------------------
//文件功能描述：品牌详细信息对象。
//创建人：赵国伟
//创建时间：2012-04-02 13:22:54
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shopping.Common;


namespace Shopping.Model
{
    public class BrandInfo
    {
        /// <summary>
        /// 品牌基本信息；
        /// </summary>
        public Brands Brand;

        /// <summary>
        /// 该品牌拥有的类别信息；
        /// </summary>
        public List<IDNameObj> Categories;

        /// <summary>
        /// 该品牌拥有的产品种类；
        /// </summary>
        public int CategoryCounts
        {
            get
            {
                if (Categories == null)
                    return 0;
                else
                    return Categories.Count;
            }
        }

        /// <summary>
        /// 该品牌下商品数；
        /// </summary>
        public int GoodsCounts;


        #region "构造函数"

        public BrandInfo()
        {
            Brand = new Brands();
            Brand.LastModifyDate = DateTime.Now;
            Brand.CreateDate = DateTime.Now;
            
        }

        public BrandInfo(Brands brand)
        {
            Brand = brand;
        }
        #endregion



    }
}
